Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing problem with saving birthday #274

Merged
merged 20 commits into from May 4, 2012
Merged

Fixing problem with saving birthday #274

merged 20 commits into from May 4, 2012

Conversation

fism88
Copy link
Collaborator

@fism88 fism88 commented May 3, 2012

Should be able to save birthdays for different users. #163

Added cancel button to each of the sections in the edit profile page. #165

Added default birthday values to upcoming dates for Alice and Jeff in initial data #273

Able to save Interested in field now #163

Added more internationalisation (i18n) to profile html file #147

Able to save relationship status now #163

try{
profile.birthday = (Date) birthday_formatting.parse(birthday);
} catch (java.text.ParseException e) {
e.printStackTrace();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to do something proper on the exception. It is very important to handle it well. We don't want to show the user the exception trace. Handle it, show a proper message to the user.

@amshali
Copy link
Collaborator

amshali commented May 3, 2012

What's up?

@fism88
Copy link
Collaborator Author

fism88 commented May 3, 2012

Does this now look better for the error messages?

@amshali
Copy link
Collaborator

amshali commented May 3, 2012

No. Look how errors are handled here:
http://www.playframework.org/documentation/1.2.4/guide4

@amshali
Copy link
Collaborator

amshali commented May 3, 2012

Also look at the signup page and how errors are handled there,

@fism88
Copy link
Collaborator Author

fism88 commented May 3, 2012

Right, the validation. I'm still working on the regex and testing because I am using validation.match to handle user input errors for calendar related fields.

@amshali
Copy link
Collaborator

amshali commented May 3, 2012

As soon as you send an update I will review and merge it. Make sure you pull first.

@fism88
Copy link
Collaborator Author

fism88 commented May 3, 2012

Okay I moved the error messages to display all of them at the top of the left panel in red and tested to see if saving still works.

@fism88
Copy link
Collaborator Author

fism88 commented May 4, 2012

Just a heads up, I fixed some other things as well

@amshali
Copy link
Collaborator

amshali commented May 4, 2012

let me test it

amshali added a commit that referenced this pull request May 4, 2012
Fixing problem with saving birthday
@amshali amshali merged commit 9de6b17 into w7cook:master May 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants